Returns the size or absolute position of the element in px including padding, margin and border.

<div class="definition">
    getSize(el, type)
</div>

<div class="arguments">
    <table>
    <tr>
        <td>el</td>
        <td><b>HTML Element</b>, element to evaluate</td>
    </tr>
    <tr>
        <td>type</td>
        <td><b>string</b>, size type</td>
    </tr>
    </table>
</div>

First parameter <span class="argument">el</span> is the element to be inspected (it can also be a mQuery object). Second parameter
<span class="argument">type</span> can be one of the following:
<ul style="margin-left: 40px">
    <li>width - the width of the element</li>
    <li>height - the height of the element</li>
</ul>

<textarea class="javascript">
var a = w2utils.getSize(el, 'width');
console.log(a);
</textarea>